{extend name="base" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/plugins/mmgrid/mmGrid.css?v={$v}" />
{/block}
{block name="js"}
<script src="__STATIC__/plugins/mmgrid/mmGrid.js?v={$v}" type="text/javascript"></script>
<script src="__ADMIN__/orders/orders.js?v={$v}" type="text/javascript"></script>
{/block}
{block name="main"}
<input type="hidden" id="userId" class="j-ipt" value='{$userId}' autocomplete="off"/>
<div class="wst-toolbar">
<div id='moreItem' class='hide'>
  <select id="areaId1" class='ipt j-ipt' level="0" onchange="WST.ITAreas({id:'areaId1',val:this.value,className:'j-ipt'});">
  <option value="-1">-商家所在地-</option>
  {volist name="areaList" id="vo"}
  <option value="{$vo['areaId']}">{$vo['areaName']}</option>
  {/volist}
</select>
<select id='orderCode' class='j-ipt'>
 <option value=''>订单来源</option>
 {volist name=":WSTOrderModule()" id="om"}
 <option value="{$om['name']}">{$om['name']}</option>
 {/volist}
</select>
<select id='isRefund' class='j-ipt'>
 <option value='-1'>是否退款</option>
 <option value='1'>是</option>
 <option value='0'>否</option>
</select>
<select id='isInvoice' class='j-ipt'>
 <option value='-1'>是否要发票</option>
 <option value='1'>是</option>
 <option value='0'>否</option>
</select>
<input type="text" id="startDate" style='width:120px' name="startDate" class="laydate-icon j-ipt" maxLength="20" value='' placeholder='下单开始日期'/>
至
<input type="text" id="endDate" name="endDate" style='width:120px' class="laydate-icon j-ipt" maxLength="20" value='' placeholder='下单结束日期'/>
</div>
<input type="text" name="orderNo"  placeholder='订单编号' id="orderNo" class='j-ipt'/>
<input type="text" name="shopName"  placeholder='店铺名称/店铺编号' id="shopName" class='j-ipt'/>
<select id='orderStatus' class='j-ipt' style='margin-top:2px'>
  <option value='10000'>订单状态</option>
  <option value='0'>待发货</option>
  <option value='-2'>待支付</option>
  <option value='-1'>已取消</option>
  <option value='1'>配送中</option>
  <option value='2'>已收货</option>
  <option value='-3'>用户拒收</option>
</select>
<select id='payType' class='j-ipt' style='margin-top:2px'>
   <option value='-1'>支付方式</option>
   <option value='0'>货到付款</option>
   <option value='1'>在线支付</option>
</select>
<select id='deliverType' class='j-ipt' style='margin-top:2px'>
 <option value='-1'>配送方式</option>
 <option value='1'>自提</option>
 <option value='0'>送货上门</option>
</select>

<select id='payFrom' class='j-ipt'>
 <option value=''>支付来源</option>
 {volist name=":WSTLangPayFrom('',1)" id="paySrc"}
 <option value='{$paySrc.payCode}'>{$paySrc.payName}</option>
 {/volist}
</select>  
   <button class="btn btn-primary" onclick='javascript:loadGrid(0)'><i class="fa fa-search"></i>查询</button>
   <button class="btn btn-primary" onclick='javascript:loadMore()'><i class="fa fa-search"></i>更多查询项</button>
   {if($userId>0)}<button class="btn f-right btn-fixtop" onclick="javascript:location.href='{:Url(\'admin/users/index\',\'p=\'.$p)}'" style="margin-left: 10px;"><i class="fa fa-angle-double-left"></i>返回</button>{/if}
   <button class="btn btn-primary f-right btn-fixtop" onclick='javascript:toExport(0)'><i class="fa fa-sign-in"></i>导出</button>
   <div style='clear:both'></div>
</div>
<div class='wst-grid'>
 <div id="mmg" class="mmg"></div>
 <div id="pg" style="text-align: right;"></div>
</div>
<script>
$(function(){initGrid({$p});})
</script>
{/block}